package demo.metrics;

import java.util.concurrent.atomic.AtomicLong;
import java.util.function.ToDoubleFunction;

public class AtomicLongToDouble implements ToDoubleFunction<AtomicLong>{
	
	public double applyAsDouble(AtomicLong obj){
		if(obj==null){
			return 0;
		}
		return obj.get();
	}
	
	
	
}